﻿<Window x:Class="Matt40k.Spelling.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Spelling" Height="750" Width="750" WindowStartupLocation="CenterOwner" WindowState="Maximized">
    <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />

            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />

            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Image Name="wordPicture" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center"
               Grid.ColumnSpan="11" />

        <TextBox Name="Letter1" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="0"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper"/>
        <TextBox Name="Letter2" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="1"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper"/>
        <TextBox Name="Letter3" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="2"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper"/>
        <TextBox Name="Letter4" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="3"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper"/>

        <TextBox Name="Letter5" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="4"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />
        <TextBox Name="Letter6" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="5"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />
        <TextBox Name="Letter7" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="6"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />
        <TextBox Name="Letter8" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="7"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />

        <TextBox Name="Letter9" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="8"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />
        <TextBox Name="Letter10" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="9"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />
        <TextBox Name="Letter11" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="10"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />
        <TextBox Name="Letter12" Margin="0,0,20,0" Height="100" Width="100" FontSize="80" Grid.Column="11"
                 Visibility="Hidden" Grid.Row="1" HorizontalContentAlignment="Center" MaxLength="1"
                 KeyDown="Letter_KeyDown" TextChanged="Letter_TextChanged" CharacterCasing="Upper" />

        <ComboBox Name="folderComboBox" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="11"
                  HorizontalContentAlignment="Center" ItemsSource="{Binding Path=FolderList}" FontSize="24"
                  VerticalContentAlignment="Center" Visibility="Hidden"
                  SelectionChanged="folderComboBox_SelectionChanged" />

        <Button Name="revealButton" Margin="0,100,0,0" Content="Reveal" FontSize="24" Grid.Column="0" Grid.Row="2"
                VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="11" Height="50" Width="200"
                Click="revealButton_Click" Visibility="Hidden" />
        <Button Name="nextButton" Margin="0,50,0,0" Content="Next" FontSize="24" Grid.Column="0" Grid.Row="3"
                VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="11" Height="50" Width="200"
                Click="nextButton_Click" />
    </Grid>
</Window>